package com.gitee.wsl.common.chart.sample.scatter.model

import android.graphics.Paint
import android.graphics.PointF
import com.gitee.wsl.api.SelectAbleItem
import com.gitee.wsl.common.chart.model.PlotDot
import com.gitee.wsl.common.ui.draw.type.DotStyle


/**
 * @ClassName ScatterData
 * @Description 散点图数据类
 * @author XiongChuanLiang<br/>(xcl_168@aliyun.com)
 *
 */

class ScatterData() :SelectAbleItem{

    override var isSelected: Boolean=false

    //标签轴用的到值
    var label = ""

    //是否在点上显示标签
    var isLabelVisible = false

    //线上每个点的值
    //private LinkedHashMap<Double,Double> mPointMap ;

    //线上每个点的值
    //private LinkedHashMap<Double,Double> mPointMap ;
    //线上每个点的值
    var pointMap = mutableListOf<PointF>()


    //标签画笔
    var labelPaint: Paint=Paint(Paint.ANTI_ALIAS_FLAG)

    //点画笔
    val plotDot: PlotDot = PlotDot().apply {
        dotStyle = DotStyle.DOT
    }

    //标签文字旋转角度
    var itemLabelRotateAngle = 0.0f
}